package br.com.gp.fabrica;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import br.com.gp.gerentes.GerenteCadastro;

public class Atendente {
	public GerenteCadastro chamaGerenteCadastro(){
		AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(FabricaGerentes.class);
		return  (GerenteCadastro) context.getBean("gerenteCadastro");
	}
}